<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form id="ff" method="post"  enctype="multipart/form-data">
<a class="easyui-linkbutton" data-options="iconCls:'icon-more',plain:true,toggle:true,iconAlign:'right',plain:true">打卡数据导入</a>
<input name="uploadFile" type="file" />
<a class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" id="sub">提交</a>
<a style="margin-left:50%" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" id="saveCard">保存数据</a>
</form>

   <table class="easyui-datagrid" style="width: 100%;" id="card"></table>
	<script src="../hyn/js/check/excelInCard.js"></script>
<script type="text/javascript">
$('#ff').form({
    url:'../excel/uploadFileAction',
    onSubmit: function(){
		return true;
    },
    success:function(data){
    	var datas=$.parseJSON(data);
		$('#card').datagrid({data:datas});
    }
});
$("#sub").bind('click',function(){
	$('#ff').submit();
})
</script>
</body>
</html>